package com.hdoit.ares.logical.share.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.hdoit.ares.logical.share.dao.IViewTimeDao;
import com.hdoit.ares.logical.share.model.ViewTime;
import com.hdoit.ares.logical.share.service.IViewTimeService;
/**
 * @author      wangxuexue
 * @email       
 * @createtime  2017年11月22日 15:59:46
 * @comment
 */
@Component
public class ViewTimeServiceImpl extends SuperService<ViewTime> implements IViewTimeService{

	private IViewTimeDao viewTimeDao;
	
	
	public IViewTimeDao getViewTimesDao() {
		return viewTimeDao;
	}

	@Resource
	public void setViewTimeDao(IViewTimeDao viewTimeDao) {
		this.viewTimeDao = viewTimeDao;
	}

	@Override
	public int updateViewTimeById(String shareId,String type) {
		
		return viewTimeDao.updateViewTimeById(shareId,type);

	}

	@Override
	public ViewTime queryModelByShareId(String shareId, String type) {

		return viewTimeDao.queryModelByShareId(shareId, type);
	}

}